<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class ModifyAuthorizationRequestStatus extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('authorization_requests', function(Blueprint $blueprint) {
            $blueprint->boolean('process_status')->comment('授权状态，该字段仅作参考，用于缓存和快速查询使用，不能作为严格判断依据')->default(0);
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
